using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DM.DAO;
using DM.Entity;

namespace DM.Web
{
    public partial class TimKiem : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                string keyWord = Request.QueryString["key"];
            }
        }

        protected string GetImage(string id)
        {
            HinhDAO _hinhDAO = new HinhDAO();
            Hinh hinh = _hinhDAO.Get(Common.ParseInt32(id));
            return hinh.Hinhurl;
        }

        protected void BindingGridView(string keyWord)
        {
            TinTucDAO _tinTucDao = new TinTucDAO();
            DataTable tableTinTuc = _tinTucDao.Search(keyWord);
            gvSearch.DataSource = tableTinTuc;
            gvSearch.DataBind();
        }
    }
}
